﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8">
<title>车辆监控平台</title>

<style type="text/css">
*{
	margin: 0;
	padding: 0;
}
#wrap 
{
	width: 100%;
    height: 1080px;
	background-image: url(images/loginBackground.jpg);
	/*
	height: 719px;
	width: 100;
	background-image: url(images/loginBackground.jpg);
	background-repeat: no-repeat;
	background-position: center center;
	background-size: 100% 100%;*/
	position: relative;
}
#head {
	height: 120px;
	width: 100;
	background-color: #C6EEF5;
	text-align: center;
	position: relative;
}
#foot {
	width: 100;
	height: 126px;
	background-color: #CC9933;
	position: relative;
}
#wrap .logGet {
	height: 408px;
	width: 368px;  
	position: absolute;
	background-color: #FFFFFF;
	top: 20%;
	right: 15%;
}
.logC a button {
	width: 100%;
	height: 45px;
	background-color: #64D0E2;
	border: none;
	color: white;
	font-size: 18px;
}
.logGet .logD.logDtip .p1 {
	display: inline-block;
	font-size: 28px;
	margin-top: 30px;
	width: 86%;
}
#wrap .logGet .logD.logDtip {
	width: 86%;
	border-bottom: 1px solid #64D0E2;
	margin-bottom: 0px;
	margin-top: 0px;
	margin-right: auto;
	margin-left: auto;
}
.logGet .lgD img {
	position: absolute;
	top: 12px;
	left: 8px;
}
.logGet .lgD input {
	width: 100%;
	height: 42px;
	text-indent: 2.5rem;
}
#wrap .logGet .lgD {
	width: 86%;
	position: relative;
	margin-bottom: 30px;
	margin-top: 30px;
	margin-right: auto;
	margin-left: auto;
}
#wrap .logGet .logC {
	width: 86%;
	margin-top: 0px;
	margin-right: auto;
	margin-bottom: 0px;
	margin-left: auto;
}
 
 
.title {
	font-weight:bold;
	color: #007C95;
	font-size: 45px;
	/*position: absolute;
    font-size: 36px;
	height: 40px;
	width: 30%;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);   使用css3的transform来实现 */
    padding-top: 30px;
	white-space:nowrap;
}
 
.copyright {
	font-family: "宋体";
	color: #FFFFFF;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);  /* 使用css3的transform来实现 */
	height: 60px;
	width: 40%;
	text-align:center;
}
	
 
#foot .copyright .img {
	width: 100%;
	height: 24px;
	position: relative;
}
.copyright .img .icon {
	display: inline-block;
	width: 24px;
	height: 24px;
	margin-left: 22px;
	vertical-align: middle;
	background-image: url(%E7%94%B5%E5%AD%90%E9%82%AE%E4%BB%B6.png);
	background-repeat: no-repeat;
	vertical-align: middle;
	margin-right: 5px;
}
	
.copyright .img .icon1 {
	display: inline-block;
	width: 24px;
	height: 24px;
	margin-left: 22px;
	vertical-align: middle;
	background-image: url(%E5%9C%B0%E5%9D%80.png);
	background-repeat: no-repeat;
	vertical-align: middle;
	margin-right: 5px;
}
.copyright .img .icon2 {
	display: inline-block;
	width: 24px;
	height: 24px;
	margin-left: 22px;
	vertical-align: middle;
	background-image: url(%E8%81%94%E7%B3%BB%E6%96%B9%E5%BC%8F.png);
	background-repeat: no-repeat;
	vertical-align: middle;
	margin-right: 5px;
}
#foot .copyright p {
	height: 24px;
	width: 100%;
}
</style>

<link rel="stylesheet" type="text/css" href="ext/resources/css/ext-all.css" />
<script type="text/javascript" src="ext/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="ext/ext-all.js"></script>
<script type="text/javascript" src="ext/ext-lang-zh_CN.js"></script>

<script type="text/javascript">
    var loginUsername = "";
    var loginPassword = "";
    function loginNew() {


        loginUsername = document.getElementById("loginUsername").value;
        loginPassword = document.getElementById("loginPassword").value;

        if (loginUsername == "") {
            Ext.MessageBox.alert("提示", "请输入用户名");
            return;
        }
        if (loginUsername == "") {
            Ext.MessageBox.alert("提示", "请输入密码");
            return;
        }
        var paraMap = {
            loginUsername: loginUsername,
            loginPassword: loginPassword
        }
        Ext.Ajax.request({
            url: "Services/login.aspx",
            waitTitle: "连接中...",
            waitMsg: "正在发送数据...",
            method: 'post',
            params: {
                loginUsername: loginUsername, // 这就是参数 param1 是参数名字，a 是值
                loginPassword: loginPassword
            },

            success: function (form, action) {
                window.location = 'selectOptions.aspx';
            },
            failure: function (form, action) {
                if (action.failureType == "server") {
                    obj = Ext.decode(action.response.responseText);
                    Ext.Msg.alert("登录失败!", obj.reason);
                } else {
                    Ext.Msg.alert("登录失败", "与服务器通讯中断，请检查网络，稍候再尝试！");
                }
            }
        });
    }


</script>
</head>
 
<body>
<div class="header" id="head">
  <div class="title">远航城管委智慧环卫平台</div>
	
</div>
	
<div class="wrap" id="wrap">
	<div class="logGet">
			<!-- 头部提示信息 -->
			<div class="logD logDtip">
				<p class="p1">登录</p>
			</div>
			<!-- 输入框 -->
			<div class="lgD">
				<img src="images/login_User.png" width="20" height="20" alt=""/>
				<input type="text" id="loginUsername"
					placeholder="输入用户名" />
			</div>
			<div class="lgD">
				<img src="images/login_Password.png" width="20" height="20" alt=""/>
				<input type="password" id="loginPassword"
					placeholder="输入用户密码" />
			</div>
			<div class="logC">
				<a href="javascript:;" target="_self" onclick="loginNew()"><button>登 录</button></a>
			</div>
		</div>
</div>
	
<!--<div class="footer" id="foot">
  <div class="copyright">
    <p>Copyright © 2018 Qunar.com Inc. All Rights Reserved.</p>
    <div class="img">
		<i class="icon"></i><span>联系邮箱：jiankangsun@yahoo.com</span>
	</div>
	
	<div class="img">
		<i class="icon1"></i><span>联系地址：合肥工业大学</span>
	</div>
	  
	<div class="img">
	  <i class="icon2"></i><span>联系电话：18355042634</span>
	</div>
 
 
  </div>
	
</div>-->
	
	
</body>
</html>
